# -*- coding: utf-8 -*-
"""
 @Time    : 2021/2/2 下午4:06
 @Author  : tgy
 
"""

class MyList(list):
    ...
    def __getitem__(self, item):
        return super().__getitem__(item - 1)



if __name__ == '__main__':
    ...
    li = MyList([1,3,4])
    ni = MyList([3,4,5])
    # print(li[1])
    # type(obj) == obj.__class__ ,在内存中，类对象只存在一份，所以下面输出True
    print(type(li) is type(ni));